package com.service.impl;

import com.dao.ProductDao;
import com.dao.imp.ProductDaoImpl;
import com.module.Product;
import com.service.ProductService;

import java.util.List;

public class ProductServiceImpl implements ProductService {

    private ProductDao productDao=new ProductDaoImpl();


    @Override
    public List<Product> findAllProduct() {
        List<Product> allProduct = productDao.findAllProduct();
        return allProduct;
    }

    @Override
    public Product findProductByPid(int pid) {
        Product productByPid = productDao.findProductByPid(pid);
        return productByPid;
    }
}
